#!/usr/bin/env ipython

from fulguro import *


imin = flgr2d_load_png("../../apps/images/gray/lena.png")
vec_min = FLGR_Vector(imin.spp,imin.type)
vec_max = FLGR_Vector(imin.spp,imin.type)
vec_vol = FLGR_Vector(imin.spp,FLGR_UINT32)

a,b = flgr2d_measure_min_max(imin,vec_min,vec_max)
print flgr2d_measure_volume(imin,vec_vol)[0]

print a,b
